package com.example.design.strategy;

/**
 * @author: Bin.L
 * @date: 2022/3/12  17:33
 * @Description: 抽象策略的具体实现
 */
public class Waimai extends AbstractStrategy implements AwardStrategy {

    private static final Waimai instance = new Waimai();

    private Waimai() {
        // 调用抽象类注册
        register();
    }

    public static Waimai getInstance() {
        return instance;
    }

    @Override
    public void issue(String param) {
        //  if has other service
        System.out.println(this.getClass().getSimpleName() + " " + param);
    }
}
